<template>
<div class="sq-warp">
    <ul>
        <li v-for="value in page" :key="value.id">
            <img :src="value.iconUrl" alt="">
            <span>{{value.name}}</span>
        </li>
    </ul>
</div>
</template>

<script setup>
import { useStore} from 'vuex';
import {computed} from 'vue'

let store = useStore()
store.dispatch('getHomePage')

let page = computed(()=>{
    return store.state.home.homePageList
})

</script>
<style scoped lang='less'>
    .sq-warp{
        display: flex;
        flex-direction: row;
        height: 1.4rem;
        width: 100%;
        overflow-x: auto;
        margin-top: 0.2rem;
        font-size: 8px;
        // 滚动条隐藏
        &::-webkit-scrollbar {
        width: 0px;
        }
        ul{
            display: flex;
            li{
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                height: 100%;
                width: 1.32rem;
                img{
                    width: 0.6rem;
                    height: 0.6rem;
                    background-color: #fc0707;
                    border-radius: 50%;
                }
            }
        }
    }
</style>